import request from '@/utils/request'
// /goods/list 商品列表
export const goodsList = (params) => {
  return request.get('/goods/list', { params })
}
// /goods/del 删除商品
export const goodsDel = (params) => {
  return request.get('/goods/del', { params })
}
// /goods/edit 修改商品
export const goodsEdit = (params) => {
  return request.post('/goods/edit', params)
}
// /goods/add 添加商品
export const goodsAdd = (params) => {
  return request.post('/goods/add', params)
}
// /goods/goods_img_upload 上传图片
export const goodsImgUpload = (params) => {
  return request.post('/goods/goods_img_upload', params)
}
// /goods/categories 获取商品分类名称
export const goodsCategories = (params) => {
  return request.get('/goods/categories', { params })
}
// /goods/catelist 获取商品分类列表
export const goodsCatelist = (params) => {
  return request.get('/goods/catelist', { params })
}
// /goods/editcate 修改商品分类
export const goodsEditcate = (params) => {
  return request.post('/goods/editcate', params)
}
// /goods/delcate 删除商品分类
export const goodsDelcate = (dada) => {
  return request.get('/goods/delcate', { params:dada })
}
// /goods/addcate 添加商品分类
export const goodsAddcate = (params) => {
  return request.post('/goods/addcate', params)
}